package cn.edu.sdjzu.xg2106.domain;

public class Teacher {
    private String name;
    private int department_id;
    private int id;
    private Department department;

    @Override
    public String toString() {
        return "Teacher{" + ", id=" + id +
                "name='" + name + '\'' +
                ", department_id=" + department_id +
                '}';
    }

    public Teacher(int id, String name, int department_id) {
        this.name = name;
        this.department_id = department_id;
        this.id = id;
    }

    public Teacher(int id,String name,int department_id, Department department) {
        this.name = name;
        this.id = id;
        this.department = department;
        this.department_id=department_id;
    }

    public String getName() {
        return name;
    }

    public int getDepartment_id() {
        return department_id;
    }

    public int getId() {
        return id;
    }

    public Department getDepartment() {
        return department;
    }
}
